<div class="row" ng-controller="hostTopController">
    <div class="col-md-12">
        <div class="panel panel-default">
            <div class="panel-heading">{{env.envName}}</div>
            <div class="panel-body">
                <table class="table">
                    <thead>
                    <tr>
                        <th>主机</th>
                        <th>状态</th>
                        <th>CPU使用率</th>
                        <th>已用内存</th>
                        <th>内存使用率</th>
                        <th>磁盘</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <tr ng-repeat="item in items">
                        <td ng-bind="item.hostName"></td>
                        <td ng-bind="item.hostStatus == 1?'正常':'连接断开'"></td>
                        <td ng-bind="(item.hostCpuUsed / 100) + '%'"></td>
                        <td ng-bind="(item.hostMem / 1024) + 'M'"></td>
                        <td ng-bind="(item.hostMemUsed / 10000) + '%'"></td>
                        <td ng-bind="item.hostDisk"></td>
                        <td>
                            <button class="btn btn-default" type="button" ng-click="info(item.id)">查看详情</button>
                        </td>
                    </tr>
                    </tbody>
                </table>
            </div>
            <div class="pull-right">
                <ul uib-pagination
                    total-items="total"
                    items-per-page="page.pageSize"
                    ng-model="page.pageNo"
                    max-size="maxSize"
                    previous-text="上一页"
                    next-text="下一页"
                    first-text="首页"
                    last-text="尾页"
                    boundary-links="true"
                    force-ellipses="true"
                    ng-change="pageChanged()"
                    class="pagination"/>
            </div>
        </div>
    </div>
</div>